package fr.upmc.bean;

import java.util.HashSet;
import java.util.Set;

public class Contact {
	
	private String firstName;
	private String lastName;
	private String email;
	private long contactId;
	private Address address;
	private Set<ContactGroup> books;
	private Set<PhoneNumber> profiles;
	
	public Contact(){
		this.books = new HashSet<ContactGroup>();
		this.profiles = new HashSet<PhoneNumber>();
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public Set<ContactGroup> getBooks() {
		return books;
	}

	public void setBooks(Set<ContactGroup> books) {
		this.books = books;
	}
	
	public void addBook(ContactGroup book) {
		this.books.add(book);
	}

	public Set<PhoneNumber> getProfiles() {
		return profiles;
	}

	public void setProfiles(Set<PhoneNumber> profiles) {
		this.profiles = profiles;
	}
	
	public void addProfiles(PhoneNumber pn) {
		this.profiles.add(pn);
	}

	public long getContactId() {
		return contactId;
	}

	public void setContactId(long contactId) {
		this.contactId = contactId;
	}
}


